package net.seehope.foodie.code;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.web.context.request.ServletWebRequest;

@Component
public class SmsValidateCodeProcessor extends AbstractValidateCodeProcessor<ValidateCode>{

	@Autowired
	private SmsCodeSender sender;
	

	
	@Override
	protected void send(ServletWebRequest request, ValidateCode validateCode) throws Exception {
		sender.send(request, validateCode);
	}

	@Override
	protected String getType(){
		return "sms";
	}

}
